package com.mysteel.seckill.config;

import com.mysteel.seckill.interceptor.LoginUserInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * ProjectName: mail
 * ClassName: SecKillWebConfig
 * Description:
 * date: 2021/04/12/012 16:13
 *
 * @author xiaochao
 */
@Configuration
public class SecKillWebConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoginUserInterceptor()).addPathPatterns("/**");
    }
}
